﻿using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Text;

namespace Cemit.PolyServer
{
    /// <summary>
    /// 提供对IEnumerable<Player>批量发送信息的支持
    /// </summary>
    public static class PlayersSendExtensions
    {
        public static void Send(this IEnumerable<Player> players, IMessage message)
        {
            foreach (var item in players)
            {
                item.Send(message);
            }
        }
    }
}
